package com.studyroom.utils;

public class RedisContants {
    public static final String CACHE_KEY_PREFIX="studyroom:";

    public static final String TOKEN_KEY=CACHE_KEY_PREFIX+"token:";
    public static final Long TOKEN_TTL=3600L;
    public static final Long TRYLOCK_TTL=10L;

    public static final String USER_KEY=CACHE_KEY_PREFIX+"user:";
    public static final Long USER_TTL=7L;

    public static final String ROOM_KEY=CACHE_KEY_PREFIX+"room:";
    public static final Long ROOM_MEMBER_TTL=20L;
    /*在线信息*/
    public static final String ONLINE_KEY=CACHE_KEY_PREFIX+"online:key:";
    public static final Long ONLINE_TTL=10L;
    //好友
    public static final String CONTACTS_KEY=CACHE_KEY_PREFIX+"contacts:";
    //好友请求
    public static final String CONTACTS_REQUEST_KEY=CACHE_KEY_PREFIX+"contacts:request:";
    public static final Long CONTACTS_REQUEST_TTL=168L;
    //聊天消息 一对一 单位:day
    public static final String CHAT_SOLO_KEY=CACHE_KEY_PREFIX+"chat:solo:";
    public static final Long CHAT_SOLO_TTL=30L;
    //邮件
    public static final String MAIL_KEY=CACHE_KEY_PREFIX+"mail:";
    //手机验证码
    public static final String VERIFY_CODE_KEY=CACHE_KEY_PREFIX+"verify_code:";
    public static final Long VERIFY_CODE_TTL=5L;
    //点赞
    public static final String LIKE_KEY=CACHE_KEY_PREFIX+"like:";
    //Hyperloglog pv统计
    public static final String QUESTION_PV_KEY=CACHE_KEY_PREFIX+"question:pv:";

}
